<i class="fa fa-search" style="font-size:28px">&nbsp;球员</i>
<hr>

<div>
	<form id="searchForm" class="form-inline" role="form">

		<div class="form-group input-group-sm">
			球场位置：
			<select id="roleSelect" class="form-control" style="margin-right: 20px;">
				<option value="">请选择</option>
				<option value="后卫">后卫</option>
				<option value="前锋">前锋</option>
				<option value="中锋">中锋</option>
			</select>
			球员姓名：
			<input id="playerName" type="text" class="form-control col-lg-15" onkeydown="OnTextChanged()" placeholder="请输入球员姓名">
		</div>&nbsp;
		<button type="reset" style="margin-right: 10px;" class="btn btn-warning btn-sm">重置</button>
		<button id="search" type="button" onclick="searchPlayer()" class="btn btn-primary btn-sm">提交</button>
	</form>
</div>
<div id="mainContent">
	<div id="playerContent">
		<div id="playerInfo">
			<#assign data=responseData.data>
				<div id="playerImage">
					<img src="http://www.stat-nba.com/image/playerImage/${data.playerId?c}.jpg" width="220px" height="275px" />
				</div>
				<table>
					<thead>
						<tr align="center">
							<th colspan="2">${data.playerEName!}<#if data.playerCName??>/${data.playerCName!}</#if>
							</th>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td>位置：</td>
							<td>${data.playerRole!}</td>
						</tr>
						<tr>
							<td>身高：</td>
							<td>${data.heightMetric!}m<#if data.heightBritish??>(${data.heightBritish!})</#if>
							</td>
						</tr>
						<tr>
							<td>体重：</td>
							<td>${data.weightKilogram!}kg<#if data.weightPound??>(${data.weightPound!}磅)</#if>
							</td>
						</tr>
						<tr>
							<td>出生日期：</td>
							<td>${data.birthday?date?iso_utc!}</td>
						</tr>
						<tr>
							<td>高中：</td>
							<td>${data.seniorHighSchool!}</td>
						</tr>
						<tr>
							<td>大学：</td>
							<td>${data.university!}</td>
						</tr>
						<tr>
							<td>球衣号码：</td>
							<td>${data.uniformNumber!}</td>
						</tr>
						<tr>
							<td>选秀情况：</td>
							<td>${data.draft!}</td>
						</tr>
						<tr>
							<td>当前薪水：</td>
							<td>${data.salary!}万美元</td>
						</tr>
					</tbody>
				</table>
		</div>
		<hr>

		<div class="btn-group btn-group-lg" style="margin-bottom: 20px">
			<button id="regularSeasonData" onclick="loadPlayerRegularData(${data.playerId?c}, $(this))" type="button" class="btn btn-light">常规赛数据</button>
			<button id="postSeasonData" onclick="loadPlayerPostData(${data.playerId?c}, $(this))" type="button" class="btn btn-light">季后赛数据</button>
		</div>


		<div id="playerData">

		</div>

	</div>
</div>
